package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class EturnsACopyOfTheSpecificColumnOfAPassed2DDoubleArrayAsAOneDimensionalDoubleArray {
	public static double[] colCopy(double[][] twoDdoubleArray, int colNb) {
		double[] aCol = new double[twoDdoubleArray.length];
		for (int i = 0; i < twoDdoubleArray.length; i++) {
			aCol[i] = twoDdoubleArray[i][colNb];
		}
		return aCol;
	}
}
